js convert set to array

60

js convert set to array -

let array = Array.from(mySet);

let array = [...mySet];

let array = []; mySet.forEach(v => array.push(v));

js set to array -

Array.from(my_set.values());

Comments

Submit
0 Comments